package alvarodelrosal.chat.server.modelo;

import java.sql.Date;

public class ChatMessage {
    
    private ChatUser user;
    private Date date;
    private String text;

    public ChatMessage(ChatUser user, String text) {
        this.user = user;
        this.date = new Date(new java.util.Date().getTime());
        this.text = text;
    }

    public Date getDate() {
        return date;
    }

    public String getText() {
        return text;
    }

    public ChatUser getUser() {
        return user;
    }
    
}
